package xyz.labmem.base.sys.config.mybatis

import com.baomidou.mybatisplus.core.injector.AbstractMethod
import com.baomidou.mybatisplus.core.injector.DefaultSqlInjector
import com.baomidou.mybatisplus.core.metadata.TableInfo
import com.baomidou.mybatisplus.extension.injector.methods.InsertBatchSomeColumn

/**
 * 批量添加
 * @Author lty
 * @Date 2021/12/22 10:22
 */
class EasySqlInjector : DefaultSqlInjector() {

    override fun getMethodList(mapperClass: Class<*>?, tableInfo: TableInfo?): MutableList<AbstractMethod> {
        val methodList = super.getMethodList(mapperClass, tableInfo)
        methodList.add(InsertBatchSomeColumn())
        return methodList
    }
}